package com.etc.service.impl;

import com.etc.mapper.CityDao;
import com.etc.pojo.Area;
import com.etc.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {

    @Autowired
    CityDao cityDao;

    @Override
    public List<Area> getArea() throws Exception {
        return cityDao.queryArea();
    }

    @Override
    public List<Area> getAreaByAreaId(String areaId) throws Exception {
        return cityDao.queryAreaByAreaId(areaId);
    }
}
